<?php

namespace App;
use App\Model;

class Task extends Model
{
   // use Notifiable;
    //protected  $table='businesss';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $guarded=[];
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */

    public  function all_task(){
        return $this->hasOne('App\TaskType','id','type_id');
    }
}
